//package com.springbootee.Config;
//
//import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
//import org.springframework.security.config.annotation.web.builders.HttpSecurity;
//import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
//import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
//import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
//
//@EnableWebSecurity
//public class SeurityConfig extends WebSecurityConfigurerAdapter {
//    //链式编程
//
////    //
////    @Override
////    protected  void configure(HttpSecurity http)  throws  Exception{
////         super.configure(http);
////
////    }
//
//
////    //认证
////    @Override
////    protected  void  configure(AuthenticationManagerBuilder auth) throws  Exception{
////        //paswordENcoder新增加密方式
////        auth.inMemoryAuthentication().passwordEncoder(new BCryptPasswordEncoder())
////                //password里可以使用new BCryptPsswordEncoder.encode加密密码
////                .withUser("zongyouxun").password(new BCryptPasswordEncoder().encode("123456")).roles("首页","博客预览")
////                .and()
////                .withUser("root").password("root").roles("首页","创建博客")
////                .and()
////                .withUser("1234").password("123456").roles("首页","分享博客");
////    }
//}
